
export const formData = {
    getItemUrl: 'merchant/coupon/getItemById/',
    updateUrl: 'merchant/coupon/updateAction/',
    createUrl: 'merchant/coupon/createAction/',
    formKey: 'coupon',
    updateFieldList: [
        { formType: 'Option', showName: '立减券', key: 'types', width: 6, required: true },
        { formType: 'Input', showName: '订单ID', key: 'code', width: 6, required: true },
        { formType: 'Money', showName: '面额', key: 'fullMoney', width: 6, required: true, },
        { formType: 'Option', showName: '状态', key: 'status', width: 6, required: true },
    ],
    detailFieldList: [
        { formType: 'Option', showName: '立减券', key: 'types', width: 6, required: true },
        { formType: 'Money', showName: '面额', key: 'fullMoney', width: 6, required: true, },
        { formType: 'Option', showName: '状态', key: 'status', width: 6, required: true },
    ],
    options: {
        types: [
            {value: '1', label: "兑换券"},
            {value: '2', label: "立减券"},
            {value: '3', label: "折扣券"},
            {value: '4', label: "满减券"},
        ],
        status: [
            {value: 'wait_use', label: "待使用"},
            {value: 'has_use', label: "已使用"},
            {value: 'due', label: "已过期"}
        ],
        isShow: [
            {value: 1, label: "是"},
            {value: 0, label: "否"}
        ]
    },
    dicts: {
        status: {
            '1': "正常",
            '2': "异常"
        }
    }
}
